riscv: Update supports_extension() to use desc from cpu driver
authorBin Meng <[email protected]>
Wed, 12 Dec 2018 14:12:38 +0000 (06:12 -0800)
committerAndes <[email protected]>
Tue, 18 Dec 2018 01:56:27 +0000 (09:56 +0800)
commitaef59e5cc450f403478f799bbb0f0647ff28a3c3
treea8dd18c0e493e9614a4e7331dd832d945ad963de
parent3967156464282df161f5e4be40999dae47adf799
riscv: Update supports_extension() to use desc from cpu driver

This updates supports_extension() implementation to use the desc
string from the cpu driver whenever possible, which avoids the
reading of misa CSR for S-mode U-Boot.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Lukas Auer <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
arch/riscv/cpu/cpu.c